import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {AppComponent} from "./app.component";

const routes: Routes = [
  {path: '', component: AppComponent},
  {
    path: 'ant-g6', loadChildren: () => import('./modules/ant-g6/ant-g6.module')
      .then(m => m.AntG6Module)
  },
  {
    path: 'jsplumb', loadChildren: () => import('./modules/jsplumb/jsplumb.module')
      .then(m => m.JsplumbModule)
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
